<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Attributes Protocol Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Protocol/Attributes" class="dashAnchor"></a>
    <a title="Attributes Protocol Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html"> Docs</a> (27% documented)</p>
        <p class="header-right"><a href="https://github.com/jjkaufman/SwiftProcessing"><img src="../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html"> Reference</a>
        <img id="carat" src="../img/carat.png" />
        Attributes Protocol Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Drawing.html">Drawing</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/Shapes.html">Shapes</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/Attributes.html">Attributes</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Math.html">Math</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/Calculation.html">Calculation</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Attributes</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">Attributes</span></code></pre>

                </div>
              </div>
            <p>Atributes used for drawing</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15SwiftProcessing10AttributesP12strokeWeightyy12CoreGraphics7CGFloatVF"></a>
                    <a name="//apple_ref/swift/Method/strokeWeight(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15SwiftProcessing10AttributesP12strokeWeightyy12CoreGraphics7CGFloatVF">strokeWeight(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the width of the stroke used for lines, points and the border around shapes.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">strokeWeight</span><span class="p">(</span><span class="n">_</span> <span class="nv">weight</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>weight</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>the weight of the stroke</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15SwiftProcessing10AttributesP6smoothyyF"></a>
                    <a name="//apple_ref/swift/Method/smooth()" class="dashAnchor"></a>
                    <a class="token" href="#/s:15SwiftProcessing10AttributesP6smoothyyF">smooth()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Draws all geometry with smooth (anti-aliased) edges</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">smooth</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15SwiftProcessing10AttributesP8noSmoothyyF"></a>
                    <a name="//apple_ref/swift/Method/noSmooth()" class="dashAnchor"></a>
                    <a class="token" href="#/s:15SwiftProcessing10AttributesP8noSmoothyyF">noSmooth()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Draws all geometry with jagged (aliased) edges</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">noSmooth</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15SwiftProcessing10AttributesP11ellipseModeyySSF"></a>
                    <a name="//apple_ref/swift/Method/ellipseMode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15SwiftProcessing10AttributesP11ellipseModeyySSF">ellipseMode(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Modifies the location from which ellipses, circles, and arcs are drawn. The default mode is CENTER.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">ellipseMode</span><span class="p">(</span><span class="n">_</span> <span class="nv">eMode</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>eMode</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>either CENTER, RADIUS, CORNER, or CORNERS</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://swiftprocessing.org/" target="_blank" rel="external">Swift Processing</a>. All rights reserved. (Last updated: 2020-10-19)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
